﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UIControls.Core
{
    public class LabelCell : ContainerControl
    {
        public LabelCell()
        {
            SetStyle(
              ControlStyles.UserPaint |
              ControlStyles.AllPaintingInWmPaint |
              ControlStyles.OptimizedDoubleBuffer, true);
        }
        protected override void OnCreateControl()
        {

            base.OnCreateControl();
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.Font = GlobalUIVar.gFont;
        }
    }
}
